import './index.css';
import Boy from "./pages/boy";
import Girl from "./pages/girl";

//导入store
import store from './store'

//导入Provider
import {Provider} from 'react-redux'

function App() {
    return (
        /* 此处需要用Provider包裹App，目的是让App所有的后代容器组件都能接收到store */
        <Provider store={store}>
            <div className="App">
                <div className="boy"><Boy name="jerry" age={19}></Boy></div>
                <div className="girl"><Girl name="marry" age={18}></Girl></div>
            </div>
        </Provider>
    );
}

export default App;
